﻿@model Domain.Entity.Game
@{
    ViewBag.Title = "Edit -- " +Model.Name;
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">Edit</h2>
<div id="titlelessItem">
<div class = "item roundTextBox @Html.GetTextBoxColor(Request.Cookies["color"])">
    

    @using (Html.BeginForm("Edit", "Game", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.EditorForModel()
            if (Model != null)
            {                
                <br />
                <div>Upload Video</div><br />
                <input type="file" name="Video" /> <br /><br />
                <div>Only .wmv and .swf files can be uploaded.</div><br />
            }



            if (Model.Platforms.Any(p => p.Name == "PC"))
            {
          <div id="systemRequirements">
          @Html.Label("System Requirements");
          @Html.EditorFor(m => m.SystemRequirements)   
        </div>
            }
        
        <input type="submit" value="Save" class="actionButtons @Html.GetColor(Request.Cookies["color"])" />
        @Html.ActionLink("Cancel", "Index")
    }
</div>
</div>
